package com.admin.core.mapper;

import com.admin.core.entity.SysJob;
import com.admin.core.entity.SysUserJob;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author sq-lan
 */
@Mapper
public interface UserJobMapper extends BaseMapper<SysUserJob> {

    /**
     * 插入数据
     *
     * @param userId 用户id
     * @param jobs   工作
     */
    void insertData(@Param("userId") Integer userId, @Param("jobs") List<SysJob> jobs);

}
